﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AVISOutBound.SSOServer.Orders
{
    /// <summary>
    /// 订单的领域服务
    /// </summary>
    public interface IOrderManager
    {
        ///// <summary>
        ///// 提交订单到Wizard接口并保持订单信息到数据库
        ///// </summary>
        ///// <param name="order">订单</param>
        ///// <returns></returns>
        //Order SubmitOrder(Order order);

        ///// <summary>
        ///// 取消订单，通过Wizard接口取消并修改数据库的订单信息，最后发送订单取消事件
        ///// </summary>
        ///// <param name="order">订单</param>
        ///// <returns></returns>
        //bool CancelOrder(AgentCancelOrderRequest request);

        ///// <summary>
        ///// 根据订单号和用户姓查询订单
        ///// </summary>
        ///// <param name="OrderNo"></param>
        ///// <param name="Surname"></param>
        ///// <returns></returns>
        //Order QueryOrder(string OrderNo, string Surname);

        /// <summary>
        /// 获取订单信息（本地数据库）
        /// </summary>
        /// <param name="orderNo">订单号</param>
        /// <returns></returns>
        Order GetDBOrder(string orderNo);
    }
}
